//
//  RedisDemoController.m
//  TestDemo
//
//  Created by fengxijun on 3/29/16.
//  Copyright © 2016 goappbox. All rights reserved.
//

#import "RedisDemoController.h"
//#import "ObjCHiredis.h"

@interface RedisDemoController ()
//@property (nonatomic,strong) ObjCHiredis *redis;
@end

@implementation RedisDemoController

- (void)viewDidLoad
{
    [super viewDidLoad];
//    ObjCHiredis *redis = [ObjCHiredis redis];
//    ObjCHiredis *redis = [ObjCHiredis redis:@"127.0.0.1" on:[NSNumber numberWithInt:6379]];
//    ObjCHiredis *redis = [ObjCHiredis redis:@"127.0.0.1" on:[NSNumber numberWithInt:6379] db:[NSNumber numberWithInt:69]];
    
//    self.redis = [ObjCHiredis redis:@"127.0.0.1" on:[NSNumber numberWithInt:6379] db:[NSNumber numberWithInt:69]];
//    
//    id retVal = [_redis command:@"SET MYKEY MYVALUE"];
//    
////    id retVal = [_redis commandArgv:[NSArray arrayWithObjects:
////                                    @"SET", @"MYKEY", @"MYVALUE", nil]];
////    NSLog(@"%@",retVal);
//    
////    Pub/Sub implementation
//    [_redis command:@"SUBSCRIBE CHANNELZ"];
//    retVal = [_redis getReply];
}

@end
